home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Jun 90 / MacApp.Tech$ 6⁄8⁄90 / 1396-Re What an Improveme-Jun90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.3 KB  |  33 lines  |  [TEXT/GEOL]

  1. Item    3422979                         4-June-90        11:35PDT
  2.  
  3. From:   RDCLARK                         Clark, Richard
  4.  
  5. To:     D5385                           UT Austin, Ken Duncan,PRT
  6.         MACAPP.TECH$                    MacApp Technical
  7.  
  8. Sub:    Re: What an Improvement!
  9.  
  10. Hi Ken --
  11.  
  12.   Much of the improvement that you saw in MacApp build times is due to the way
  13. that the Pascal compiler handles symbol tables in compiled units. (The RAM
  14. cache also makes a certain difference.)
  15.  
  16.   When the compiler compiles a Pascal unit, it writes a copy of the symbol
  17. table to the resource fork of the source code file, in a resource of type
  18. 'unit'. (If you look at the file both before and after a compile, you'll see
  19. that its size has gone up.) When the compiler encounters a subsequent USES
  20. clause, it will read in this symbol table resource instead of including the
  21. full source text from the unit. For most units, reading the symbol table takes
  22. considerably less time than reading in the full source text.
  23.  
  24.   If you want a "fair" comparison, try running your tests while passing the
  25. "-clean" option to Pascal -- this forces the compiler to read in the source
  26. texts and deletes the saved symbol tables.
  27.  
  28. ...Richard Clark
  29.    Instructor/Course Designer
  30.    Developer University
  31.    Apple Computer, Inc.
  32.  
  33.